package com.jt.springboot_demo_mybatis02.mapper;


import com.jt.springboot_demo_mybatis02.pojo.DemoUser;
import com.jt.springboot_demo_mybatis02.pojo.Dept;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/*
* 说明:
* 1.根据面向接口开发的思想需要定义一个Mapper接口
* 2.在接口中可以写接口方法,谁用谁去实现
* 3.mybatis中的实现类以xml的形式存在
*
*
* */
public interface DemoUserMapper {
    List<DemoUser> findByAge(Map<String, Object> map);

    List<DemoUser> findWhere(DemoUser demoUser);

    void updateUser(DemoUser demoUser);

    List<DemoUser> selectChoose(DemoUser demoUser);

    List<Dept> findAll();
}
